package com.huyanqi.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

import com.huyanqi.core.BaseDomainObject;

@Entity
@Table(name = "p_praise")
@XmlAccessorType(XmlAccessType.FIELD)
public class Praise extends BaseDomainObject {
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Id
	@Column(name="p_id",nullable=false)
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long pId;

	public void setPId(Long pId) {
		this.pId = pId;
	}
	public Long getPId() {
		return pId;
	}

	@Column(name="p_uid")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long pUid;

	public void setPUid(Long pUid) {
		this.pUid = pUid;
	}
	public Long getPUid() {
		return pUid;
	}

	@Column(name="p_shopid")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long pShopid;

	public void setPShopid(Long pShopid) {
		this.pShopid = pShopid;
	}
	public Long getPShopid() {
		return pShopid;
	}

	@Column(name="p_shareid")
	@XmlElement
	@Basic(fetch=FetchType.EAGER)
	private Long pShareid;

	public void setPShareid(Long pShareid) {
		this.pShareid = pShareid;
	}
	public Long getPShareid() {
		return pShareid;
	}

}